﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Policlinica
{
    public class Dosage : BusinessObjectBase
    {
        private string _count;
        private Drug _Drug;
        private Recipe _Recipe;

       
        public Dosage()
        {
            this._Drug = default(Drug);
            this._Recipe = default(Recipe);
        }

        public Dosage(int id, bool isDeleted, string count, Drug drug, Recipe recipe)
            : base(id, isDeleted)
        {
            _count = count;
            _Drug = drug;
            _Recipe = recipe;
        }

        public Dosage(string count, Drug drug, Recipe recipe)
        {
            _count = count;
            _Drug = drug;
            _Recipe = recipe;
        }

        public string Count
        {
            get
            {
                return this._count;
            }
            set
            {
                if ((this._count != value))
                {
                    this._count = value;
                }
            }
        }

        public Drug Drug
        {
            get
            {
                return this._Drug;
            }
            set
            {
                Drug previousValue = this._Drug;
                if (previousValue != value)
                {
                    this._Drug = value;
                }
            }
        }

        public Recipe Recipe
        {
            get
            {
                return this._Recipe;
            }
            set
            {
                Recipe previousValue = this._Recipe;
                if (previousValue != value)
                {
                  
                    this._Recipe = value;
                    
                }
            }
        }

        
    }
	
}
